import { WeaTools } from 'ecCom';

//获取列表数据
export const getlist = (params={workPlanType: null, timeModul: null, planName: null}) => {
    return WeaTools.callApi('/api/workplan/search/getlist', 'POST', params);
}


//获取高级查询条件
export const getCondition = (params={}) => {
    return WeaTools.callApi('/api/workplan/search/getCondition', 'POST', params);
}


//批量完成接口
export const batchFinish = (params={}) => {
    return WeaTools.callApi('/api/workplan/base/batchfinish', 'POST', params);
}

//导出excel
export const exportExcel = (params={}) => {
    return WeaTools.callApi('/api/ec/dev/table/export', 'POST', {dataKey: params})
}

//完成接口
export const doFinish = (params={}) => {
    return WeaTools.callApi('/api/workplan/base/finish', 'POST', params);
}

//删除
export const doDelete = (params={}) => {
    return WeaTools.callApi('/api/workplan/base/delete', 'POST', params);
}

